package gw.com.android.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.gwtsz.gts2.hx.R;

import gw.com.android.ui.views.banner.loader.ImageLoader;

/**
 * @author jett
 * @since 2018-11-08
 */
public class BannerImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        Glide.with(context.getApplicationContext())
                .load((String) path)
                .placeholder(R.mipmap.a_default_adbanner)
                .error(R.mipmap.a_default_adbanner)
                //.transform(new CornerTransformation(context))
                .into(imageView);
    }

}
